Skip to content

refactor(encryption): remove dead code from Util and use DI in Admin - #64856

Open
joshtrichards wants to merge 7 commits into
masterfrom
jtr/fix-sse-Util-dropDeadCode
Open

joshtrichards wants to merge 7 commits into
masterfrom
jtr/fix-sse-Util-dropDeadCode

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

🧹

  • Remove Util::setRecoveryForUser() and its unused session state and constructor dependency. Recovery updates remain handled by Recovery class.
  • Inject Util and Session into Admin, just like Personal already does, and remove the dependencies used only to construct them manually.
  • Update test coverage to accommodate the above changes

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Remove `Util::setRecoveryForUser()` and its unused session state and constructor dependency. Recovery updates remain handled by `Recovery` class.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Inject Util and Session into Admin, just like Personal already does, and remove the dependencies used only to construct them manually.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Remove the obsolete setter test and its session-related mocks, and update the Util construction to match its simplified constructor.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added this to the Nextcloud 36 milestone Sep 27, 2026
@joshtrichards
joshtrichards requested a review from a team as a code owner September 27, 2026 16:19
@joshtrichards joshtrichards added the 3. to review Waiting for reviews label Sep 27, 2026
@joshtrichards
joshtrichards removed the request for review from a team September 27, 2026 16:19
@joshtrichards joshtrichards added the technical debt 🧱 🤔🚀 label Sep 27, 2026
@joshtrichards joshtrichards added the ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) label Sep 27, 2026
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Base automatically changed from jtr/fix-sse-Util to master December 3, 2026 15:37
@susnux
susnux requested a review from a team as a code owner December 3, 2026 15:37
@susnux

susnux commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

@joshtrichards conflicts

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: encryption (server-side) ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants